#include "programsavedialog.h"
#include "ui_programsavedialog.h"

ProgramSaveDialog::ProgramSaveDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::ProgramSaveDialog)
{
    ui->setupUi(this);

    this->setWindowFlags(Qt::FramelessWindowHint);    //无边框
    this->setStyleSheet("outline: none;");            //无虚线框
}

ProgramSaveDialog::~ProgramSaveDialog()
{
    delete ui;
}

void ProgramSaveDialog::on_sureBtn_clicked()
{
    emit saveFileSignal();
    this->hide();
}

void ProgramSaveDialog::on_cancelBtn_clicked()
{
    this->hide();
}
